import axios from "axios";

const url = "https://bjsf.bjsky.top/";
// const url = "http://bjsf.bjsky.top/";
let token = sessionStorage.getItem("token");

//首页获取数据
export function getMainData(token,) {
    let formdata = new FormData();
    formdata.append("token", token);
    // formdata.append("id", id);
    return axios.post(url + "admin/index/water_Home", formdata);
}
// 首页获取未处理订单数据
export function getMainDatas(token,) {
    let formdata = new FormData();
    formdata.append("token", token);
    // formdata.append("id", id);
    return axios.post(url + "admin/index/water_after_count", formdata);
}
//售后退货列表
export function backList(
    token,
    page,
    limit,
    status,
    type,
) {
    let formdata = new FormData();
    formdata.append("token", token);
    formdata.append("page", page);
    formdata.append("limit", limit);
    formdata.append("status", status);
    formdata.append("type", type);
    return axios.post(url + "admin/index/water_after_list", formdata);
}

//财务--售出商品一览表
export function shouChuList(
    token,
    page,
    limit,
    name,
    type,
    cat_id,
    time
) {
    let formdata = new FormData();
    formdata.append("token", token);
    formdata.append("page", page);
    formdata.append("limit", limit);
    formdata.append("name", name);
    formdata.append("type", type);
    formdata.append("cat_id", cat_id);
    formdata.append("time", time);
    return axios.post(url + "admin/goods/goods_Sell_list", formdata);
}

//财务--售出商品一览表详情
export function shouChuDetail(
    token,
    page,
    limit,
    goods_id,
    time
) {
    let formdata = new FormData();
    formdata.append("token", token);
    formdata.append("page", page);
    formdata.append("limit", limit);
    formdata.append("goods_id", goods_id);
    formdata.append("time", time);
    return axios.post(url + "admin/goods/goods_Sell_index_list", formdata);
}
//财务--水票出售列表
export function shuiPiaoList(
    token,
    page,
    limit,
    name,
    type,
    time
) {
    let formdata = new FormData();
    formdata.append("token", token);
    formdata.append("page", page);
    formdata.append("limit", limit);
    formdata.append("name", name);
    formdata.append("type", type);
    formdata.append("time", time);
    return axios.post(url + "admin/goods/water_Sell_list", formdata);
}

//财务--水票出售列表详情
export function shuiPiaoDetail(
    token,
    page,
    limit,
    water_id,
    time
) {
    let formdata = new FormData();
    formdata.append("token", token);
    formdata.append("page", page);
    formdata.append("limit", limit);
    formdata.append("water_id", water_id);
    formdata.append("time", time);
    return axios.post(url + "admin/goods/water_Sell_index_list", formdata);
}
//财务--交易流水
export function flowList(
    token,
    page,
    limit,
    time,
    time_status
) {
    let formdata = new FormData();
    formdata.append("token", token);
    formdata.append("page", page);
    formdata.append("limit", limit);
    formdata.append("time_status", time_status);
    formdata.append("time", time);
    return axios.post(url + "admin/goods/trade_list", formdata);
}
//客服--获取客服列表
export function getKeFu(
    token,
    page,
    pageSize,
    is_shop,
) {
    return axios.get(
        url +
        "admin/Customer/index?token=" +
        token +
        "&page=" +
        page +
        "&pageSize=" +
        pageSize +
        "&is_shop=" +
        is_shop
    );
}
//客服--添加客服
export function addKeFu(
    token,
    user_name,
    telephone,
    aeccount,
    password,
    avatar,
    seller_id,
    // 5建材市场
    type,
    job_number

) {
    let formdata = new FormData();
    formdata.append("token", token);
    formdata.append("user_name", user_name);
    formdata.append("telephone", telephone);
    formdata.append("aeccount", aeccount);
    formdata.append("password", password);
    formdata.append("avatar", avatar);
    formdata.append("seller_id", seller_id);
    formdata.append("type", type);
    formdata.append("job_number", job_number);
    return axios.post(url + "admin/Customer/save", formdata);
}
//客服--编辑客服
export function editKeFu(
    token,
    page,
    limit,
    water_id,
    time
) {
    let formdata = new FormData();
    formdata.append("token", token);
    formdata.append("page", page);
    formdata.append("limit", limit);
    formdata.append("water_id", water_id);
    formdata.append("time", time);
    return axios.post(url + "admin/Customer/edit", formdata);
}
//客服--客服详情
export function kefuDetail(
    token,
    page,
    limit,
    water_id,
    time
) {
    let formdata = new FormData();
    formdata.append("token", token);
    formdata.append("page", page);
    formdata.append("limit", limit);
    formdata.append("water_id", water_id);
    formdata.append("time", time);
    return axios.post(url + "admin/Customer/read?id=1", formdata);
}
//客服--删除客服
export function delKeFu(
    token,
    page,
    limit,
    water_id,
    time
) {
    let formdata = new FormData();
    formdata.append("token", token);
    formdata.append("page", page);
    formdata.append("limit", limit);
    formdata.append("water_id", water_id);
    formdata.append("time", time);
    return axios.post(url + "admin/Customer/delete", formdata);
}

//室内快修--首页获取数据
export function getKuaiXiuShouYe(token) {
    let formdata = new FormData();
    formdata.append("token", token);
    // formdata.append("id", id);
    return axios.post(url + "admin/index/kxiu_Home", formdata);
}
// 室内快修--近七天收入折线图
export function getMoney(token) {
    let formdata = new FormData();
    formdata.append("token", token);
    // formdata.append("id", id);
    return axios.post(url + "admin/order/pay_statistics", formdata);
}
// 室内快修--近七天订单统计
export function getTongJi(token) {
    let formdata = new FormData();
    formdata.append("token", token);
    return axios.post(url + "admin/order/order_statistics_weixiu", formdata);
}
//室内快修--获取员工列表
export function getStaffList(
    token,
    page,
    limit,
    name,
    authority_id,
    phone_number,
    names,
) {
    let formdata = new FormData();
    formdata.append("token", token);
    formdata.append("page", page);
    formdata.append("limit", limit);
    formdata.append("name", name);
    formdata.append("authority_id", authority_id);
    formdata.append("phone_number", phone_number);
    formdata.append("names", names);
    return axios.post(url + "admin/user/user_po_list", formdata);
}
// 室内快修--员工管理(删除员工)
export function delYuanGong(
    token,
    id
) {
    let formdata = new FormData();
    formdata.append("token", token);
    formdata.append("id", id);
    return axios.post(url + "admin/user/user_shengqing_Del", formdata);
}
// 室内快修--员工管理(查询中工种下拉框)
export function getGongZhongSelect(
    token,
    type
) {
    let formdata = new FormData();
    formdata.append("token", token);
    formdata.append("type", type);
    return axios.post(url + "admin/user/wokr_type_cat", formdata);
}
// 室内快修--员工管理（新增员工）
export function addYuanGong(
    token,
    img,
    phone_number,
    name,
    user_id,
    authority_id,
    user_skill,
    gonling,
    jiguan,
    names,
    type,
    proportion,
    is_baiben
) {
    let formdata = new FormData();
    formdata.append("token", token);
    formdata.append("img", img);
    formdata.append("phone_number", phone_number);
    formdata.append("name", name);
    formdata.append("user_id", user_id);
    formdata.append("authority_id", authority_id);
    formdata.append("user_skill", user_skill);
    formdata.append("gonling", gonling);
    formdata.append("jiguan", jiguan);
    formdata.append("names", names);
    formdata.append("type", type);
    formdata.append("proportion", proportion);
    formdata.append("is_baiben", is_baiben);
    return axios.post(url + "admin/user/user_authority", formdata);
}
// 室内快修--员工管理（编辑员工）
export function editYuanGong(
    token,
    img,
    phone_number,
    name,
    user_id,
    authority_id,
    user_skill,
    gonling,
    jiguan,
    names,
    type,
    proportion,
    id,
    is_baiben
) {
    let formdata = new FormData();
    formdata.append("token", token);
    formdata.append("img", img);
    formdata.append("phone_number", phone_number);
    formdata.append("name", name);
    formdata.append("user_id", user_id);
    formdata.append("authority_id", authority_id);
    formdata.append("user_skill", user_skill);
    formdata.append("gonling", gonling);
    formdata.append("jiguan", jiguan);
    formdata.append("names", names);
    formdata.append("type", type);
    formdata.append("proportion", proportion);
    formdata.append("id", id);
    formdata.append("is_baiben", is_baiben);
    return axios.post(url + "admin/user/up_user_auth_weixiu", formdata);
}
// 室内快修--审核申请
export function toShenHe(
    token,
    id,
    status
) {
    let formdata = new FormData();
    formdata.append("token", token);
    formdata.append("id", id);
    formdata.append("status", status)
    return axios.post(url + "admin/user/user_shengqing", formdata);
}
//室内快修--工种管理列表
export function getGongZhong(
    token,
    page,
    limit,
    name,
) {
    let formdata = new FormData();
    formdata.append("token", token);
    formdata.append("page", page);
    formdata.append("limit", limit);
    formdata.append("name", name);
    return axios.post(url + "admin/user/wokr_type_list", formdata);
}
//室内快修--工种管理(工种添加)
export function addGongZhong(
    token,
    name,
    status
) {
    let formdata = new FormData();
    formdata.append("token", token);
    formdata.append("name", name);
    formdata.append("status", status);
    return axios.post(url + "admin/user/wokr_type_add", formdata);
}
//室内快修--工种管理(工种修改)
export function editGongZhong(
    token,
    name,
    status,
    id
) {
    let formdata = new FormData();
    formdata.append("token", token);
    formdata.append("name", name);
    formdata.append("status", status);
    formdata.append("id", id);

    return axios.post(url + "admin/user/wokr_type_up", formdata);
}
//室内快修--工种管理(工种删除)
export function delGongZhong(
    token,
    id,
) {
    let formdata = new FormData();
    formdata.append("token", token);
    formdata.append("id", id);
    return axios.post(url + "admin/user/wokr_type_del", formdata);
}
export function QiYong(
    token,
    id,
    status
) {
    let formdata = new FormData();
    formdata.append("token", token);
    formdata.append("id", id);
    formdata.append("status", status);
    return axios.post(url + "admin/user/wokr_type_statusup", formdata);
}

// 室内快修--员工评价
export function getPingJia(
    token,
    page,
    limit,
    name,
    authority_id,
    phone_number

) {
    let formdata = new FormData();
    formdata.append("token", token);
    formdata.append("page", page);
    formdata.append("limit", limit);
    formdata.append("name", name);
    formdata.append("authority_id", authority_id);
    formdata.append("phone_number", phone_number);
    return axios.post(url + "admin/user/user_weixiu_pinglun", formdata);
}
// 室内快修--员工评价详情
export function getPingJiaDetail(
    token,
    page,
    limit,
    user_id,
    phone_number,
    time
) {
    let formdata = new FormData();
    formdata.append("token", token);
    formdata.append("page", page);
    formdata.append("limit", limit);
    formdata.append("user_id", user_id);
    formdata.append("phone_number", phone_number);
    formdata.append("time", time);
    return axios.post(url + "admin/user/user_weixiupinglun_index_list", formdata);
}
// 订单--快修订单
export function getDingDan(
    token,
    page,
    limit,
    order_id,
    status
) {
    let formdata = new FormData();
    formdata.append("token", token);
    formdata.append("page", page);
    formdata.append("limit", limit);
    formdata.append("order_id", order_id);
    formdata.append("status", status);
    return axios.post(url + "admin/order/order_list_weixiu", formdata);
}
export function getDingDanCount(
    token
) {
    let formdata = new FormData();
    formdata.append("token", token);
    return axios.post(url + "admin/order/order_list_weixiu_count", formdata);
}
// 快修财务--交易流水
export function getJiaoYi(
    token,
    page,
    limit,
    time,
    time_status
) {
    let formdata = new FormData();
    formdata.append("token", token);
    formdata.append("page", page);
    formdata.append("limit", limit);
    formdata.append("time", time);
    formdata.append("time_status", time_status);
    return axios.post(url + "admin/order/order_weixiu_pay", formdata);
}
// 快修财务--资产总览
export function getZiChan(
    token,
    type
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("type", type)
    return axios.post(url + "admin/order/order_weixiu_jlv", formdata);
}
// 快修工具-工具分类（获取列表）
export function getGongJufL(
    token,
    page,
    limit,
    name,
    type
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("page", page)
    formdata.append("limit", limit)
    formdata.append("name", name)
    formdata.append("type", type)
    return axios.post(url + "admin/user/wokr_type_list", formdata);
}
// 快修工具-工具分类（添加）
export function addGongJufL(
    token,
    name,
    status,
    type
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("name", name)
    formdata.append("status", status)
    formdata.append("type", type)
    return axios.post(url + "admin/user/wokr_type_add", formdata);
}
// 快修工具-工具分类（修改）
export function editGongJufL(
    token,
    name,
    status,
    type,
    id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("name", name)
    formdata.append("status", status)
    formdata.append("type", type)
    formdata.append("id", id)
    return axios.post(url + "admin/user/wokr_type_up", formdata);
}
// 快修工具-工具分类（删除）
export function delGongJufL(
    token,
    id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    return axios.post(url + "admin/user/wokr_type_del", formdata);
}

// 快修工具-维修工具（获取）
export function getWeiXiuGj(
    token,
    page,
    limit,
    name,
    moren,
    type
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("page", page)
    formdata.append("limit", limit)
    formdata.append("name", name)
    formdata.append("moren", moren)
    formdata.append("type", type)
    return axios.post(url + "admin/Tool/tool_list", formdata);
}
// 快修工具-维修工具（新增）
export function addWeiXiuGj(
    token,
    name,
    moren,
    type,
    types,
    sort
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("name", name)
    formdata.append("moren", moren)
    formdata.append("type", type)
    formdata.append("types", types)
    formdata.append("sort", sort)
    return axios.post(url + "admin/Tool/tool_add", formdata);
}
// 快修工具-维修工具（编辑）
export function editWeiXiuGj(
    token,
    name,
    moren,
    type,
    types,
    sort,
    id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("name", name)
    formdata.append("moren", moren)
    formdata.append("type", type)
    formdata.append("types", types)
    formdata.append("sort", sort)
    formdata.append("id", id)
    return axios.post(url + "admin/Tool/tool_up", formdata);
}
// 维修工具-（删除）
export function delWeiXiuGj(
    token,
    id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    return axios.post(url + "admin/Tool/tool_del", formdata);
}
// 快修项目-快修列表（获取）
export function getKXXM(
    token,
    page,
    limit,
    name,
    type,
    status
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("page", page)
    formdata.append("limit", limit)
    formdata.append("name", name)
    formdata.append("type", type)
    formdata.append("status", status)
    return axios.post(url + "admin/goods_cat/gettopcat", formdata);
}
// 快修工具-维修工具（新增）
export function addKXXM(
    token,
    parent_id,
    name,
    sort,
    image,
    type,
    status,

) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("parent_id", parent_id)
    formdata.append("name", name)
    formdata.append("sort", sort)
    formdata.append("image", image)
    formdata.append("type", type)
    formdata.append("status", status)
    return axios.post(url + "admin/GoodsCat/cat_add", formdata);
}
// 快修工具-维修工具（编辑）
export function editKXXM(
    token,
    parent_id,
    name,
    sort,
    image,
    type,
    status,
    id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("parent_id", parent_id)
    formdata.append("name", name)
    formdata.append("sort", sort)
    formdata.append("image", image)
    formdata.append("type", type)
    formdata.append("status", status)
    formdata.append("id", id)
    return axios.post(url + "admin/GoodsCat/cat_up", formdata);
}
// 维修工具-（删除）
export function delKXXM(
    token,
    id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    return axios.post(url + "admin/GoodsCat/del", formdata);
}
// 平台建材市场-（首页）
export function getJianCaiLine(
    token
) {
    let formdata = new FormData();
    formdata.append("token", token)
    return axios.post(url + "admin/MaterialsOrder/week_order_count", formdata);
}
// 平台建材市场-（首页折线图）
export function getJianCai(
    token
) {
    let formdata = new FormData();
    formdata.append("token", token)
    return axios.post(url + "admin/MaterialsOrder/index", formdata);
}
// 平台建材市场-（商品推广列表）
export function getPromotion(
    token,
    company_name,
    shop_name,
    goods_name,
    time,
    type,
    status,
    pageSize,
    page
) {
    return axios.get(
        url +
        "admin/BuildingMaterialsGoodsPromote/index?token=" +
        token +
        "&company_name=" +
        company_name +
        "&shop_name=" +
        shop_name +
        "&goods_name=" + goods_name +
        "&time=" +
        time +
        "&type=" +
        type +
        "&status=" +
        status +
        "&pageSize=" +
        pageSize +
        "&page=" +
        page

    );
}

// 平台建材市场-（商品推广详情）
export function getPromotionDeatil(
    token,
    id
) {
    return axios.get(
        url +
        "admin/BuildingMaterialsGoodsPromote/read?token=" +
        token +
        "&id=" +
        id
    );
}
// 平台建材市场-（添加商品推广）
export function addPromotion(
    token,
    goods_id,
    module,
    type,
    sort,
    time,
    show_type
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("goods_id", goods_id)
    formdata.append("module", module)
    formdata.append("type", type)
    formdata.append("sort", sort)
    formdata.append("time", time)
    formdata.append("show_type", show_type)
    return axios.post(url + "admin/BuildingMaterialsGoodsPromote/save", formdata);
}
// 平台建材市场-（编辑商品推广）
export function editPromotion(
    token,
    id,
    module,
    type,
    sort,
    time,
    show_type
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    formdata.append("module", module)
    formdata.append("type", type)
    formdata.append("sort", sort)
    formdata.append("time", time)
    formdata.append("show_type", show_type)
    return axios.post(url + "admin/BuildingMaterialsGoodsPromote/update", formdata);
}
// 平台建材市场-（终止/恢复推广）
export function restorePromotion(
    token,
    id,
    status
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    formdata.append("status", status)
    return axios.post(url + "admin/BuildingMaterialsGoodsPromote/editPromoteStatus", formdata);
}
// 平台建材市场-（商品推广删除）
export function delPromotion(
    token,
    id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    return axios.post(url + "admin/BuildingMaterialsGoodsPromote/delete", formdata);
}
// 平台建材市场-（建材分类列表）
export function getClassification(
    token,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    return axios.post(url + "admin/BuildingMaterialsCategory/category_tree_top", formdata);
}

// 平台建材市场-（评价列表）
export function getEvaluateList(
    token,
    company_name,
    manager_name,
    manager_phone,
    pageSize,
    page
) {
    return axios.get(
        url +
        "admin/Comment/index?token=" +
        token +
        "&company_name=" +
        company_name +
        "&manager_name=" +
        manager_name +
        "&manager_phone=" +
        manager_phone +
        "&pageSize=" +
        pageSize +
        "&page=" +
        page

    );
}
// 平台建材市场-（获取建材筛选条件列表）
export function getFilterList(
    token,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/materials.Materials/getGoodsCateList", formdata);
}
// 平台建材市场-（新增建材筛选条件）
export function addFilterList(
    token,
    category_id,
    data
    // obj
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("category_id", category_id)
    formdata.append("data", data)
    return axios.post(url + "admin/materials.Materials/cate_name_add", formdata);
    // return axios.post(url + "admin/materials.Materials/cate_name_add", JSON.stringify(obj.obj));
}
// 平台建材市场-（编辑建材筛选条件）
export function editFilterList(
    token,
    id,
    category_id,
    data
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    formdata.append("category_id", category_id)
    formdata.append("data", data)
    return axios.post(url + "admin/materials.Materials/cate_name_update", formdata);
}
// 平台建材市场-（查看建材筛选条件）
export function viewFilterList(
    token,
    category_id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("category_id", category_id)
    return axios.post(url + "admin/materials.Materials/cate_name_info", formdata);
}
// 平台建材市场-（删除建材筛选条件）
export function delFilterList(
    token,
    category_id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("category_id", category_id)
    return axios.post(url + "admin/materials.Materials/cate_name_del", formdata);
}
// 平台建材市场-（建材筛选条件是否可见）
export function lookFilterList(
    token,
    category_id,
    status,
    title
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("category_id", category_id)
    formdata.append("status", status)
    formdata.append("title", title)
    return axios.post(url + "admin/materials.Materials/update_cate_name", formdata);
}
// 平台建材市场-（商家财务报表）
export function getMerchantFinance(
    token,
    id,
    shop_name,
    company_name,
    store_manager_name,
    store_manager_phone,
    seller_type,
    time,
    page,
    limts
) {
    return axios.get(
        url +
        "admin/Seller/finance_list?token=" +
        token +
        "&id=" +
        id +
        "&shop_name=" +
        shop_name +
        "&company_name=" +
        company_name +
        "&store_manager_name=" +
        store_manager_name +
        "&store_manager_phone=" +
        store_manager_phone +
        "&seller_type=" +
        seller_type +
        "&time=" +
        time +
        "&page=" +
        page +
        "&limts=" +
        limts
    );
}
// 平台建材市场-（商家财务报表详情）
export function getFinanceDetail(
    token, id, time
) {
    return axios.get(
        url +
        "admin/Seller/finance_detail?token=" +
        token +
        "&id=" +
        id +
        "&time=" +
        time
    );
}
// 平台建材市场-（提成总额）
export function getTotalAmount(
    token,
    id,
    company_name,
    store_manager_name,
    store_manager_phone,
    seller_type,
    time

) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    formdata.append("company_name", company_name)
    formdata.append("store_manager_name", store_manager_name)
    formdata.append("store_manager_phone", store_manager_phone)
    formdata.append("seller_type", seller_type)
    formdata.append("time", time)
    return axios.post(url + "admin/Seller/divide_amount", formdata);
}
// 平台建材市场-（资产总览）
export function getAssetOverview(
    token
) {
    let formdata = new FormData();
    formdata.append("token", token)
    return axios.post(
        url +
        "admin/Seller/asset_overview", formdata
    );
}
// 平台建材市场-（交易流水）
export function getTransaction(
    token,
    today,
    yesterday,
    week,
    month,
    time,
    page,
    limit
) {
    return axios.get(
        url +
        "admin/Seller/transaction_flow?token=" +
        token +
        "&today=" +
        today +
        "&yesterday=" +
        yesterday +
        "&week=" +
        week +
        "&month=" +
        month +
        "&time=" +
        time +
        "&page=" +
        page +
        "&limit=" +
        limit
    );
}
// 平台建材商品管理新增--获取筛选条件列表
export function getSelectList(
    token,
    category_id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("category_id", category_id)
    return axios.post(url + "admin/materials.Materials/cateNameSelect", formdata);
}
// 平台建材商品管理新增--获取筛选条件列表
export function getRoleSelectList(
    token,
    type
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("type", type)
    return axios.post(url + "admin/materials.Materials/roleList ", formdata);
}
// 平台建材--商家评价列表
export function getMerchantReviews(
    token,
    company_name,
    store_manager_name,
    store_manager_phone,
    limit,
    page
) {
    return axios.get(
        url +
        "admin/MaterialsComment/seller_comment_list?token=" +
        token +
        "&company_name=" +
        company_name +
        "&store_manager_name=" +
        store_manager_name +
        "&store_manager_phone=" +
        store_manager_phone +
        "&limit=" +
        limit +
        "&page=" +
        page
    );
}
// 平台建材--商家评价列表详情
export function getMerchantReviewsDetail(
    token,
    seller_id,
    limit,
    page
) {
    return axios.get(
        url +
        "admin/MaterialsComment/seller_comment_detail?token=" +
        token +
        "&seller_id=" +
        seller_id +
        "&limit=" +
        limit +
        "&page=" +
        page
    );
}
// 平台建材--商家评价列表详情中的回复
export function getReply(
    token,
    id,
    user_id,
    contents

) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    formdata.append("user_id", user_id)
    formdata.append("contents", contents)
    return axios.post(url + "admin/MaterialsComment/add_return", formdata);
}
// 平台建材--商家评价列表详情中的评价删除
export function getEvaluateDel(
    token,
    id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    return axios.post(url + "admin/MaterialsComment/mdelete", formdata);
}
// 平台建材--商品评价列表
export function getReviews(
    token,
    store_manager_name,
    store_manager_phone,
    company_name,
    limit,
    page
) {
    return axios.get(
        url +
        "admin/MaterialsComment/goods_comment_list?token=" +
        token +
        "&store_manager_name=" +
        store_manager_name +
        "&store_manager_phone=" +
        store_manager_phone +
        "&company_name=" +
        company_name +
        "&limit=" +
        limit +
        "&page=" +
        page
    );
}
// 平台建材--商品评价列表详情
export function getReviewsDetail(
    token,
    seller_id,
    goods_name,
    limit,
    page
) {
    return axios.get(
        url +
        "admin/MaterialsComment/goods_comment_detail?token=" +
        token +
        "&seller_id=" +
        seller_id +
        "&goods_name=" +
        goods_name +
        "&limit=" +
        limit +
        "&page=" +
        page
    );
}
// 基础设置（账号管理）--新增账号
export function addAccountNum(
    token,
    type,
    user_name,
    use_user,
    use_phone,
    password,
    role_id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("type", type)
    formdata.append("user_name", user_name)
    formdata.append("use_user", use_user)
    formdata.append("use_phone", use_phone)
    formdata.append("password", password)
    formdata.append("role_id", role_id)
    return axios.post(url + "admin/user/admin_user_add", formdata);
}
// 基础设置（账号管理）--编辑账号
export function editAccountNum(
    token,
    type,
    id,
    user_name,
    use_user,
    use_phone,
    password,
    role_id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("type", type)
    formdata.append("id", id)
    formdata.append("user_name", user_name)
    formdata.append("use_user", use_user)
    formdata.append("use_phone", use_phone)
    formdata.append("password", password)
    formdata.append("role_id", role_id)
    return axios.post(url + "admin/user/admin_user_up", formdata);
}
// 基础设置（账号管理）--删除账号
export function delAccountNum(
    token,
    id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    return axios.post(url + "admin/user/admin_user_del", formdata);
}
// 主材商家端--评价管理列表
export function getMainsCommentList(
    token,
    goods_name,
    user_name,
    seller_id,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("goods_name", goods_name)
    formdata.append("user_name", user_name)
    formdata.append("seller_id", seller_id)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/materials.Materials/getMainsCommentList", formdata);
}
// 主材商家端--评价管理列表详情
export function getMainsCommentListDetail(
    token,
    seller_id,
    goods_id
) {
    return axios.get(
        url +
        "admin/materials.Materials/getMainsCommentDetail?token=" +
        token +
        "&seller_id=" +
        seller_id +
        "&goods_id=" +
        goods_id
    );
}
// 主材商家端--账号管理列表
export function getMainAccountNum(
    token,
    seller_id,
    type,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("type", type)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/materials.Materials/getMainsAccountList", formdata);
}
// 主材商家端--新增账号
export function addMainAccountNum(
    token,
    seller_id,
    telephone,
    role_id,
    password,
    type
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("telephone", telephone)
    formdata.append("role_id", role_id)
    formdata.append("password", password)
    formdata.append("type", type)
    return axios.post(url + "admin/materials.Materials/createMainsAccount", formdata);
}
// 主材商家端--编辑账号
export function editMainAccountNum(
    token,
    id,
    telephone,
    password,
    role_id,
    type
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    formdata.append("telephone", telephone)
    formdata.append("password", password)
    formdata.append("role_id", role_id)
    formdata.append("type", type)
    return axios.post(url + "admin/materials.Materials/updateMainsAccount", formdata);
}
// 主材商家端--删除账号
export function delMainAccountNum(
    token,
    id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    return axios.post(url + "admin/materials.Materials/delMainsAccount", formdata);
}
// 主材商家端--账号管理中的角色下拉框
export function getMainRoleSelect(
    token,
    seller_id,
    type
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("type", type)
    return axios.post(url + "admin/user/getRoleList", formdata);
}
// 主材商家端--角色管理列表
export function getMainRoleList(
    token,
    name,
    seller_id,
    type,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("name", name)
    formdata.append("seller_id", seller_id)
    formdata.append("type", type)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/materials.Materials/getRoleList", formdata);
}
// 主材商家端--获取客服管理中的角色下拉框
export function getMainKeFuSelect(
    token,
    seller_id,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    return axios.post(url + "admin/materials.Product/getRoleData", formdata);
}
// 主材商家端--新增角色
export function addMainRoleList(
    token,
    type,
    name,
    limits_id,
    limits_data,
    seller_id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("type", type)
    formdata.append("name", name)
    formdata.append("limits_id", limits_id)
    formdata.append("limits_data", limits_data)
    formdata.append("seller_id", seller_id)
    return axios.post(url + "admin/materials.Materials/addMainsRole", formdata);
}
// 主材商家端--编辑角色
export function editMainRoleList(
    token,
    id,
    name,
    limits_id,
    limits_data
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    formdata.append("name", name)
    formdata.append("limits_id", limits_id)
    formdata.append("limits_data", limits_data)
    return axios.post(url + "admin/materials.Materials/updateMainsRole", formdata);
}
// 主材商家端--删除角色
export function delMainRoleList(
    token,
    id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    return axios.post(url + "admin/materials.Materials/delMainsRole", formdata);
}
// 主材商家端--角色管理中的选择菜单下拉列表
export function getMainRoleMenu(
    token,
    name
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("name", name)
    return axios.post(url + "admin/user/mainsLimits", formdata);
}
// 平台客服--菜单权限下拉列表
export function getMenu(
    token
) {
    let formdata = new FormData();
    formdata.append("token", token)
    return axios.post(url + "admin/user/limits_", formdata);
}
// 主材商家端--资产总览
export function getMainAssetOverview(
    token,
    goods_name,
    category_id,
    time,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("goods_name", goods_name)
    formdata.append("category_id", category_id)
    formdata.append("time", time)
    return axios.post(url + "admin/materials.Materials/propertyOverview", formdata);
}
// 主材商家端--交易流水
export function getMainTransactionFlow(
    token,
    today,
    yestoday,
    week,
    month,
    time,
    order_type,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("today", today)
    formdata.append("yestoday", yestoday)
    formdata.append("week", week)
    formdata.append("month", month)
    formdata.append("time", time)
    formdata.append("order_type", order_type)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/materials.Materials/getPayedList", formdata);
}
// 主材商家端--售出商品一览表
export function getMainSellingGoods(
    token,
    goods_name,
    category_id,
    seller_id,
    time,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("goods_name", goods_name)
    formdata.append("category_id", category_id)
    formdata.append("seller_id", seller_id)
    formdata.append("time", time)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/materials.Materials/getSellGoodsList", formdata);
}
// 主材商家端--售出商品一览表详情
export function getMainSellingGoodsDetail(
    token,
    goods_id,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("goods_id", goods_id)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/materials.Materials/getSellGoodsDetail", formdata);
}
// 水站--员工评价的奖惩规则展示
export function getRewardsPunishments(
    token
) {
    let formdata = new FormData();
    formdata.append("token", token)
    return axios.post(url + "admin/goods_cat/tbj_bad_price_list", formdata);
}
// 水站--员工评价的奖惩规则修修改
export function editRewardsPunishments(
    token,
    tbj_Bad_price
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("tbj_Bad_price", tbj_Bad_price)
    return axios.post(url + "admin/goods_cat/up_tbj_bad_price", formdata);
}
// 主材商家端--门店管理信息展示
export function getStoreManagement(
    token,
    seller_id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    return axios.post(url + "admin/materials.Materials/getSellerInfo", formdata);
}
// 主材商家端--门店管理信息修改
export function editStoreManagement(
    token,
    id,
    seller_id,
    seller_desc,
    telephone,
    password,
    seller_img,
    shop_name,
    seller_address,
    longitude,
    latitude,
    ness_start,
    ness_end,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    formdata.append("seller_id", seller_id)
    formdata.append("seller_desc", seller_desc)
    formdata.append("telephone", telephone)
    formdata.append("password", password)
    formdata.append("seller_img", seller_img)
    formdata.append("shop_name", shop_name)
    formdata.append("seller_address", seller_address)
    formdata.append("longitude", longitude)
    formdata.append("latitude", latitude)
    formdata.append("ness_start", ness_start)
    formdata.append("ness_end", ness_end)
    return axios.post(url + "admin/materials.Materials/updateSellerInfo", formdata);
}
// 主材商家端--订单详情
export function getMainOrderListDetail(
    token,
    order_id
) {
    return axios.get(
        url +
        "admin/materials.Materials/getMainsOrderDetail?token=" +
        token +
        "&order_id=" +
        order_id
    );
}
// 主材商家端--售后管理列表
export function getMainAfterSalesList(
    token,
    seller_id,
    aftersales_id,
    order_id,
    user_name,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("aftersales_id", aftersales_id)
    formdata.append("order_id", order_id)
    formdata.append("user_name", user_name)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/materials.Materials/getMainsAftersalesList", formdata);
}
// 主材商家端--售后管理列表详情
export function getMainAfterSalesDetail(
    token,
    seller_id,
    aftersales_id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("aftersales_id", aftersales_id)
    return axios.post(url + "admin/materials.Materials/getMainsAftersalesDetail", formdata);
}
// 辅材商家端--账号管理列表获取
export function getFuAccount(
    token,
    seller_id,
    type,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("type", type)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/materials.Materials/getMainsAccountList", formdata);
}
// 辅材商家端--账号管理添加
export function addFuAccount(
    token,
    seller_id,
    telephone,
    role_id,
    password,
    type
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("telephone", telephone)
    formdata.append("role_id", role_id)
    formdata.append("password", password)
    formdata.append("type", type)
    return axios.post(url + "admin/materials.Materials/createMainsAccount", formdata);
}
// 辅材商家端--账号管理编辑
export function eritFuAccount(
    token,
    id,
    telephone,
    role_id,
    password,
    type
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    formdata.append("telephone", telephone)
    formdata.append("role_id", role_id)
    formdata.append("password", password)
    formdata.append("type", type)
    return axios.post(url + "admin/materials.Materials/updateMainsAccount", formdata);
}
// 辅材商家端--账号管理删除
export function delFuAccount(
    token,
    id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    return axios.post(url + "admin/materials.Materials/delMainsAccount", formdata);
}
// 辅材商家端--角色管理列表获取
export function getFuRoleList(
    token,
    seller_id,
    name,
    type,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("name", name)
    formdata.append("type", type)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/materials.Materials/getRoleList", formdata);
}
// 辅材商家端--角色管理添加
export function addFuRole(
    token,
    type,
    name,
    limits_id,
    limits_data,
    seller_id,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("type", type)
    formdata.append("name", name)
    formdata.append("limits_id", limits_id)
    formdata.append("limits_data", limits_data)
    formdata.append("seller_id", seller_id)
    return axios.post(url + "admin/materials.Materials/addMainsRole", formdata);
}
// 辅材商家端--角色管理编辑
export function editFuRole(
    token,
    type,
    id,
    name,
    limits_id,
    limits_data
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("type", type)
    formdata.append("id", id)
    formdata.append("name", name)
    formdata.append("limits_id", limits_id)
    formdata.append("limits_data", limits_data)
    return axios.post(url + "admin/materials.Materials/updateMainsRole", formdata);
}
// 辅材商家端--角色管理删除
export function delFuRole(
    token,
    id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    return axios.post(url + "admin/materials.Materials/delMainsRole", formdata);
}
// 辅材商家端--角色管理选择菜单下拉框
export function getFuRoleSelect(
    token,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    return axios.post(url + "admin/user/mainsLimits", formdata);
}
// 辅材商家端--评价管理列表
export function getFuEvaluateList(
    token,
    seller_id,
    goods_name,
    user_name,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("goods_name", goods_name)
    formdata.append("user_name", user_name)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/materials.Materials/getCommentsList", formdata);
}
// 辅材商家端--评价管理列表详情
export function getFuEvaluateDetail(
    token,
    seller_id,
    goods_id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("goods_id", goods_id)
    return axios.post(url + "admin/materials.Materials/getMainsCommentDetail", formdata);
}
// 辅材商家端--店铺管理信息获取
export function getFuStore(
    token,
    seller_id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    return axios.post(url + "admin/materials.Materials/getLiarySellerInfo", formdata);
}
// 辅材商家端--店铺管理信息编辑
export function editFuStore(
    token,
    id,
    seller_id,
    seller_desc,
    telephone,
    password,
    seller_img,
    shop_name,
    seller_address,
    longitude,
    latitude,
    // operation_start
    ness_start,
    ness_end
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    formdata.append("seller_id", seller_id)
    formdata.append("seller_desc", seller_desc)
    formdata.append("telephone", telephone)
    formdata.append("password", password)
    formdata.append("seller_img", seller_img)
    formdata.append("shop_name", shop_name)
    formdata.append("seller_address", seller_address)
    formdata.append("longitude", longitude)
    formdata.append("latitude", latitude)
    // formdata.append("operation_start", operation_start)
    formdata.append("ness_start", ness_start)
    formdata.append("ness_end", ness_end)
    return axios.post(url + "admin/materials.Materials/updateLiarySellerInfo", formdata);
}
// 辅材商家端--售出商品一览表
export function getFuSellingGoods(
    token,
    seller_id,
    goods_name,
    category_id,
    time,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("goods_name", goods_name)
    formdata.append("category_id", category_id)
    formdata.append("time", time)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/materials.Materials/getSellLiaryGoodsList", formdata);
}
// 辅材商家端--售出商品一览表详情
export function getFuSellingGoodsDetail(
    token,
    goods_id,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("goods_id", goods_id)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/materials.Materials/getSellLiaryGoodsDetail", formdata);
}
// 辅材商家端--资产总览
export function getFuAssetOverview(
    token,
    goods_name,
    category_id,
    time
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("goods_name", goods_name)
    formdata.append("category_id", category_id)
    formdata.append("time", time)
    return axios.post(url + "admin/materials.Materials/propertyLiaryOverview", formdata);
}
// 辅材商家端--交易流水
export function getFuTransactionFlow(
    token,
    today,
    yestoday,
    week,
    month,
    time,
    order_type,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("today", today)
    formdata.append("yestoday", yestoday)
    formdata.append("week", week)
    formdata.append("month", month)
    formdata.append("time", time)
    formdata.append("order_type", order_type)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/materials.Materials/getLiaryPayedList", formdata);
}
// 辅材商家端--订单列表
export function getFuOrderList(
    token,
    seller_id,
    shop_name,
    order_id,
    consignee,
    consignee_phone,
    status,
    pay_status,
    ship_status,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("shop_name", shop_name)
    formdata.append("order_id", order_id)
    formdata.append("consignee", consignee)
    formdata.append("consignee_phone", consignee_phone)
    formdata.append("status", status)
    formdata.append("pay_status", pay_status)
    formdata.append("ship_status", ship_status)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/materials.Materials/order_list", formdata);
}
// 辅材商家端--订单列表详情
export function getFuOrderDetail(
    token,
    order_id,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("order_id", order_id)
    return axios.post(url + "admin/materials.Materials/order_detail", formdata);
}
// 辅材商家端--订单列表(取消订单)
export function cancelFuOrderList(
    token,
    order_id,
    pay_status,
    ship_status
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("order_id", order_id)
    formdata.append("pay_status", pay_status)
    formdata.append("ship_status", ship_status)
    return axios.post(url + "admin/materials.Materials/cancelOrder", formdata);
}
// 辅材商家端--手写下单列表
export function getFuHandwriting(
    token,
    seller_id,
    shop_name,
    order_no,
    consignee,
    consignee_phone,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("shop_name", shop_name)
    formdata.append("order_no", order_no)
    formdata.append("consignee", consignee)
    formdata.append("consignee_phone", consignee_phone)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/materials.Materials/getHandWriteList", formdata);
}
// 辅材商家端--手写下单列表(获取未发货未接单数量)
export function getFuStatusCount(
    token,
    seller_id,
    ship_status,
    status,
    pay_status,
    order_type,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("ship_status", ship_status)
    formdata.append("status", status)
    formdata.append("pay_status", pay_status)
    formdata.append("order_type", order_type)
    return axios.post(url + "admin/materials.Liary/getOrderStatus", formdata);
}
// 辅材商家端--手写下单列表详情
export function getFuHandwritingDetail(
    token,
    id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    return axios.post(url + "admin/materials.Materials/getHandWrite", formdata);
}
// 辅材商家端--手写下单列表详情页（选择商品分类）
export function getFuGoodsClass(
    token,
    category_id
) {
    return axios.get(
        url +
        "admin/materials.Materials/getExistGoods?token=" +
        token +
        "&category_id=" +
        category_id
    );
}
// 辅材商家端--手写下单列表详情页（新增商品）
export function addFuHandwriting(
    token,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    return axios.post(url + "admin/materials.Materials/addGoods", formdata);
}
// 辅材商家端--拍照下单列表
export function getFuPhotoList(
    token,
    seller_id,
    shop_name,
    order_no,
    consignee,
    consignee_phone,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("shop_name", shop_name)
    formdata.append("order_no", order_no)
    formdata.append("consignee", consignee)
    formdata.append("consignee_phone", consignee_phone)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/materials.Materials/getPhotoList", formdata);
}
// 辅材商家端--拍照下单列表详情
export function getFuPhotoListDetail(
    token,
    id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    return axios.post(url + "admin/materials.Materials/getPhoto", formdata);
}
// 提交拍照下单
export function submitPhoto(
    token,
    id,
    goods_info,
    category_id,
    order_notes,
    user_id,
    authority_user_id
) {
    let formdata = new FormData()
    formdata.append("token", token)
    formdata.append("id", id)
    formdata.append("goods_info", goods_info)
    formdata.append("category_id", category_id)
    formdata.append("order_notes", order_notes)
    formdata.append("user_id", user_id)
    formdata.append("authority_user_id", authority_user_id)
    return axios.post(url + 'admin/MaterialsOrder/search_goods_photo_commit', formdata)
}
// 辅材商家端--售后管理列表
export function getFuAfterSales(
    token,
    seller_id,
    aftersales_id,
    order_id,
    user_name,
    user_mobile,
    page,
    limit
) {
    let formdata = new FormData()
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("aftersales_id", aftersales_id)
    formdata.append("order_id", order_id)
    formdata.append("user_name", user_name)
    formdata.append("user_mobile", user_mobile)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + 'admin/materials.Materials/getAftersalesList', formdata)
}
// 辅材商家端--售后管理列表详情
export function getFuAfterSalesDetail(
    token,
    seller_id,
    aftersales_id
) {
    let formdata = new FormData()
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("aftersales_id", aftersales_id)
    return axios.post(url + 'admin/materials.Materials/getAftersalesDetail', formdata)
}
// 辅材商家端--售后管理功能接口
export function getFuAfterSalesFunction(
    token,
    seller_id,
    aftersales_id,
    status,
    liyou,
    product_img,
    mark
) {
    let formdata = new FormData()
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("aftersales_id", aftersales_id)
    formdata.append("status", status)
    formdata.append("liyou", liyou)
    formdata.append("product_img", product_img)
    formdata.append("mark", mark)
    return axios.post(url + 'admin/materials.Materials/auditAftersales', formdata)
}
// 产品定制--订单列表
export function getProductOrderList(
    token,
    seller_id,
    shop_name,
    order_id,
    consignee,
    consignee_phone,
    status,
    pay_status,
    ship_status,
    page,
    limit
) {
    let formdata = new FormData()
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("shop_name", shop_name)
    formdata.append("order_id", order_id)
    formdata.append("consignee", consignee)
    formdata.append("consignee_phone", consignee_phone)
    formdata.append("status", status)
    formdata.append("pay_status", pay_status)
    formdata.append("ship_status", ship_status)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + 'admin/materials.Liary/getZationOrderList', formdata)
}
// 产品定制--订单列表详情
export function getProductOrderListDetail(
    token,
    order_id
) {
    let formdata = new FormData()
    formdata.append("token", token)
    formdata.append("order_id", order_id)
    return axios.post(url + 'admin/materials.Liary/getZationOrderDetail', formdata)
}
// 产品定制--售后列表
export function getProductAfterSales(
    token,
    seller_id,
    aftersales_id,
    order_id,
    user_name,
    user_mobile,
    page,
    limit
) {
    let formdata = new FormData()
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("aftersales_id", aftersales_id)
    formdata.append("order_id", order_id)
    formdata.append("user_name", user_name)
    formdata.append("user_mobile", user_mobile)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + 'admin/materials.Liary/getZationAftersalesList', formdata)
}
// 产品定制--售后列表详情
export function getProductAfterSalesDetail(
    token,
    seller_id,
    aftersales_id
) {
    let formdata = new FormData()
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("aftersales_id", aftersales_id)
    return axios.post(url + 'admin/materials.Liary/getZationAftersalesDetail', formdata)
}
// 五金店--订单列表
export function getHardwareOrderList(
    token,
    seller_id,
    shop_name,
    order_id,
    consignee,
    consignee_phone,
    status,
    pay_status,
    ship_status,
    page,
    limit
) {
    let formdata = new FormData()
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("shop_name", shop_name)
    formdata.append("order_id", order_id)
    formdata.append("consignee", consignee)
    formdata.append("consignee_phone", consignee_phone)
    formdata.append("status", status)
    formdata.append("pay_status", pay_status)
    formdata.append("ship_status", ship_status)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + 'admin/materials.Liary/getWareOrderList', formdata)
}
// 五金店--订单列表详情
export function getHardwareOrderListDetail(
    token,
    order_id
) {
    let formdata = new FormData()
    formdata.append("token", token)
    formdata.append("order_id", order_id)
    return axios.post(url + 'admin/materials.Liary/getWareOrderDetail', formdata)
}
// 五金店--售后列表
export function getHardwareAfterSales(
    token,
    seller_id,
    aftersales_id,
    order_id,
    user_name,
    user_mobile,
    page,
    limit
) {
    let formdata = new FormData()
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("aftersales_id", aftersales_id)
    formdata.append("order_id", order_id)
    formdata.append("user_name", user_name)
    formdata.append("user_mobile", user_mobile)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + 'admin/materials.Liary/getWareAftersalesList', formdata)
}
// 产品定制--售后列表详情
export function getHardwareAfterSalesDetail(
    token,
    seller_id,
    aftersales_id
) {
    let formdata = new FormData()
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("aftersales_id", aftersales_id)
    return axios.post(url + 'admin/materials.Liary/getWareAftersalesDetail', formdata)
}
// 工长套餐--套餐管理列表
export function getForemanSetList(
    token,
    seal_name,
    status,
    page,
    limit
) {
    let formdata = new FormData()
    formdata.append("token", token)
    formdata.append("seal_name", seal_name)
    formdata.append("status", status)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + 'admin/materials.Liary/getForceMealList', formdata)
}
// 工长套餐--套餐管理列表详情
export function getForemanSetListDetail(
    token,
    id
) {
    let formdata = new FormData()
    formdata.append("token", token)
    formdata.append("id", id)
    return axios.post(url + 'admin/materials.Liary/getForceMealInfo', formdata)
}
// 工长套餐--编辑套餐管理列表
export function editForemanSetList(
    token,
    id,
    status,
    goods_ids,
    seal_name,
    nums,
    type_id,
    img,
    desc
) {
    let formdata = new FormData()
    formdata.append("token", token)
    formdata.append("id", id)
    formdata.append("status", status)
    formdata.append("goods_ids", goods_ids)
    formdata.append("seal_name", seal_name)
    formdata.append("nums", nums)
    formdata.append("type_id", type_id)
    formdata.append("img", img)
    formdata.append("desc", desc)
    return axios.post(url + 'admin/materials.Liary/update_force_meal', formdata)
}
// 工长套餐--新增套餐管理列表
export function addForemanSetList(
    token,
    goods_ids,
    seal_name,
    nums,
    type_id,
    img,
    desc
) {
    let formdata = new FormData()
    formdata.append("token", token)
    formdata.append("goods_ids", goods_ids)
    formdata.append("seal_name", seal_name)
    formdata.append("nums", nums)
    formdata.append("type_id", type_id)
    formdata.append("img", img)
    formdata.append("desc", desc)
    return axios.post(url + 'admin/materials.Liary/force_meal_add', formdata)
}
// 平台建材--售后订单列表
export function getAfterSalesList(
    token,
    aftersales_id,
    order_id,
    user_name,
    user_mobile,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("aftersales_id", aftersales_id)
    formdata.append("order_id", order_id)
    formdata.append("user_name", user_name)
    formdata.append("user_mobile", user_mobile)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/materials.Liary/getAftersalesList", formdata);
}
// 平台建材--售后订单详情
export function getAfterSalesListDetail(
    token,
    aftersales_id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("aftersales_id", aftersales_id)
    return axios.post(url + "admin/materials.Liary/getAftersalesDetail", formdata);
}
// 产品定制--获取角色管理列表
export function getProductRole(
    token,
    name,
    seller_id,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("name", name)
    formdata.append("seller_id", seller_id)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/materials.Liary/getZationRoleList", formdata);
}
// 产品定制--新增角色管理列表
export function addProductRole(
    token,
    seller_id,
    limits_data,
    name,
    limits_id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("name", name)
    formdata.append("limits_id", limits_id)
    formdata.append("limits_data", limits_data)
    return axios.post(url + "admin/materials.Liary/addZationRole", formdata);
}
// 产品定制--编辑角色管理列表
export function editProductRole(
    token,
    id,
    name,
    limits_id,
    limits_data
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    formdata.append("name", name)
    formdata.append("limits_id", limits_id)
    formdata.append("limits_data", limits_data)
    return axios.post(url + "admin/materials.Liary/updateZationRole", formdata);
}
// 产品定制--删除角色管理列表
export function delProductRole(
    token,
    id,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    return axios.post(url + "admin/materials.Liary/delZationRole", formdata);
}
// 产品定制--获取账号管理列表
export function getProductAccount(
    token,
    seller_id,
    page,
    limit,
    type
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("page", page)
    formdata.append("limit", limit)
    formdata.append("type", type)
    return axios.post(url + "admin/materials.Liary/getZationAccountList", formdata);
}
// 产品定制--新增账号管理列表
export function addProductAccount(
    token,
    seller_id,
    telephone,
    role_id,
    password,
    type
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("telephone", telephone)
    formdata.append("role_id", role_id)
    formdata.append("password", password)
    formdata.append("type", type)
    return axios.post(url + "admin/materials.Liary/createZationAccount", formdata);
}
// 产品定制--编辑账号管理列表
export function editProductAccount(
    token,
    id,
    telephone,
    password,
    role_id,
    type
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    formdata.append("telephone", telephone)
    formdata.append("password", password)
    formdata.append("role_id", role_id)
    formdata.append("type", type)
    return axios.post(url + "admin/materials.Liary/updateZationAccount", formdata);
}
// 产品定制--删除账号管理列表
export function delProductAccount(
    token,
    id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    return axios.post(url + "admin/materials.Liary/delZationAccount", formdata);
}
// 产品定制--商品管理列表
export function getProductGoods(
    token,
    seller_id,
    name,
    category_id,
    brand_id,
    is_del,
    page,
    pageSize
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("name", name)
    formdata.append("category_id", category_id)
    formdata.append("brand_id", brand_id)
    formdata.append("is_del", is_del)
    formdata.append("page", page)
    formdata.append("pageSize", pageSize)
    return axios.post(url + "admin/materials.Liary/getZationGoodsList", formdata);
}
// 产品定制--列表上下架删除
export function delProductGoods(
    token,
    id,
    is_del,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    formdata.append("is_del", is_del)
    return axios.post(url + "admin/materials.Liary/update_zation_status", formdata);
}
// 产品定制--新增商品列表
export function addProductGoods(
    token,
    seller_id,
    name,
    unit,
    color,
    brand_id,
    category_id,
    sell_price,
    origin,
    texture,
    model,
    weight,
    is_break,
    is_join,
    store_nums,
    img,
    notice,
    goods_no,
    unit_val,
    langth,
    width,
    height,
    size,
    detail_chart
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("name", name)
    formdata.append("unit", unit)
    formdata.append("color", color)
    formdata.append("brand_id", brand_id)
    formdata.append("category_id", category_id)
    formdata.append("sell_price", sell_price)
    formdata.append("origin", origin)
    formdata.append("texture", texture)
    formdata.append("model", model)
    formdata.append("weight", weight)
    formdata.append("is_break", is_break)
    formdata.append("is_join", is_join)
    formdata.append("store_nums", store_nums)
    formdata.append("img", img)
    formdata.append("notice", notice)
    formdata.append("goods_no", goods_no)
    formdata.append("unit_val", unit_val)
    formdata.append("langth", langth)
    formdata.append("width", width)
    formdata.append("height", height)
    formdata.append("size", size)
    formdata.append("detail_chart", detail_chart)
    return axios.post(url + "admin/materials.Liary/doZationAdd", formdata);
}
// 产品定制--交易流水
export function getProductTransactionFlow(
    token,
    today,
    yestoday,
    week,
    month,
    time,
    order_type,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("today", today)
    formdata.append("yestoday", yestoday)
    formdata.append("week", week)
    formdata.append("month", month)
    formdata.append("time", time)
    formdata.append("order_type", order_type)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/materials.Liary/getPayedList", formdata);
}
// 产品定制--资产总览
export function getProductAssetOverview(
    token,
    goods_name,
    category_id,
    time
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("goods_name", goods_name)
    formdata.append("category_id", category_id)
    formdata.append("time", time)
    return axios.post(url + "admin/materials.Liary/propertyOverview", formdata);
}
// 产品定制--售出商品一览表
export function getProductSellingGoods(
    token,
    seller_id,
    goods_name,
    category_id,
    time,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("goods_name", goods_name)
    formdata.append("category_id", category_id)
    formdata.append("time", time)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/materials.Liary/getSellGoodsList", formdata);
}
// 产品定制--售出商品一览表详情
export function getProductSellingGoodsDetail(
    token,
    goods_id,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("goods_id", goods_id)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/materials.Liary/getSellGoodsDetail", formdata);
}
// 产品定制--评价管理列表
export function getProductEvalute(
    token,
    seller_id,
    goods_name,
    user_name,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("goods_name", goods_name)
    formdata.append("user_name", user_name)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/materials.Liary/getZationCommentList", formdata);
}
// 产品定制--评价管理列表详情
export function getProductEvaluteDetail(
    token,
    seller_id,
    goods_id,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("goods_id", goods_id)
    return axios.post(url + "admin/materials.Liary/getZationCommentDetail", formdata);
}
// 五金店--交易流水
export function getHardwareTransactionFlow(
    token,
    today,
    yestoday,
    week,
    month,
    time,
    order_type,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("today", today)
    formdata.append("yestoday", yestoday)
    formdata.append("week", week)
    formdata.append("month", month)
    formdata.append("time", time)
    formdata.append("order_type", order_type)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/materials.Liary/getWarePayedList", formdata);
}
// 五金店--资产总览
export function getHardwareAssetOverview(
    token,
    goods_name,
    category_id,
    time
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("goods_name", goods_name)
    formdata.append("category_id", category_id)
    formdata.append("time", time)
    return axios.post(url + "admin/materials.Liary/propertyWareOverview", formdata);
}
// 五金店--售出商品一览表
export function getHardwareSellingGoods(
    token,
    seller_id,
    goods_name,
    category_id,
    time,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("goods_name", goods_name)
    formdata.append("category_id", category_id)
    formdata.append("time", time)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/materials.Liary/getWareSellGoodsList", formdata);
}
// 产品定制--售出商品一览表详情
export function getHardwareSellingGoodsDetail(
    token,
    goods_id,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("goods_id", goods_id)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/materials.Liary/getWareSellGoodsDetail", formdata);
}
// 五金店--评价管理列表
export function getHardwareEvalute(
    token,
    seller_id,
    goods_name,
    user_name,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("goods_name", goods_name)
    formdata.append("user_name", user_name)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/materials.Liary/getWareCommentList", formdata);
}
// 五金店--评价管理列表详情
export function getHardwareEvaluteDetail(
    token,
    seller_id,
    goods_id,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("goods_id", goods_id)
    return axios.post(url + "admin/materials.Liary/getWareCommentDetail", formdata);
}
// 五金店--商品管理列表
export function getHardwareGoods(
    token,
    seller_id,
    name,
    category_id,
    brand_id,
    is_del,
    page,
    pageSize
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("name", name)
    formdata.append("category_id", category_id)
    formdata.append("brand_id", brand_id)
    formdata.append("is_del", is_del)
    formdata.append("page", page)
    formdata.append("pageSize", pageSize)
    return axios.post(url + "admin/materials.Liary/getWareGoodsList", formdata);
}
// 五金店--列表上下架删除
export function delHardwareGoods(
    token,
    id,
    is_del,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    formdata.append("is_del", is_del)
    return axios.post(url + "admin/materials.Liary/update_ware_status", formdata);
}
// 五金店--新增商品列表
export function addHardwareGoods(
    token,
    seller_id,
    name,
    unit,
    color,
    brand_id,
    category_id,
    sell_price,
    origin,
    texture,
    model,
    weight,
    is_break,
    is_join,
    store_nums,
    img,
    notice,
    goods_no,
    unit_val,
    langth,
    width,
    height,
    size,
    detail_chart
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("name", name)
    formdata.append("unit", unit)
    formdata.append("color", color)
    formdata.append("brand_id", brand_id)
    formdata.append("category_id", category_id)
    formdata.append("sell_price", sell_price)
    formdata.append("origin", origin)
    formdata.append("texture", texture)
    formdata.append("model", model)
    formdata.append("weight", weight)
    formdata.append("is_break", is_break)
    formdata.append("is_join", is_join)
    formdata.append("store_nums", store_nums)
    formdata.append("img", img)
    formdata.append("notice", notice)
    formdata.append("goods_no", goods_no)
    formdata.append("unit_val", unit_val)
    formdata.append("langth", langth)
    formdata.append("width", width)
    formdata.append("height", height)
    formdata.append("size", size)
    formdata.append("detail_chart", detail_chart)
    return axios.post(url + "admin/materials.Liary/doWareAdd", formdata);
}
// 五金店--获取账号管理列表
export function getHardwareAccount(
    token,
    seller_id,
    page,
    limit,
    type
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("page", page)
    formdata.append("limit", limit)
    formdata.append("type", type)
    return axios.post(url + "admin/materials.Liary/getWareAccountList", formdata);
}
// 五金店--新增账号管理列表
export function addHardwareAccount(
    token,
    seller_id,
    telephone,
    role_id,
    password,
    type
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("telephone", telephone)
    formdata.append("role_id", role_id)
    formdata.append("password", password)
    formdata.append("type", type)
    return axios.post(url + "admin/materials.Liary/createWareAccount", formdata);
}
// 五金店--编辑账号管理列表
export function editHardwareAccount(
    token,
    id,
    telephone,
    password,
    role_id,
    type
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    formdata.append("telephone", telephone)
    formdata.append("password", password)
    formdata.append("role_id", role_id)
    formdata.append("type", type)
    return axios.post(url + "admin/materials.Liary/updateWareAccount", formdata);
}
// 五金店--删除账号管理列表
export function delHardwareAccount(
    token,
    id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    return axios.post(url + "admin/materials.Liary/delWareAccount", formdata);
}
// 五金店--获取角色管理列表
export function getHardwareRole(
    token,
    name,
    seller_id,
    page,
    limit,
    type
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("name", name)
    formdata.append("seller_id", seller_id)
    formdata.append("page", page)
    formdata.append("limit", limit)
    formdata.append("type", type)
    return axios.post(url + "admin/materials.Liary/getWareRoleList", formdata);
}
// 五金店--新增角色管理列表
export function addHardwareRole(
    token,
    seller_id,
    name,
    limits_id,
    limits_data,
    type
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("name", name)
    formdata.append("limits_id", limits_id)
    formdata.append("limits_data", limits_data)
    formdata.append("type", type)
    return axios.post(url + "admin/materials.Liary/addWareRole", formdata);
}
// 五金店--编辑角色管理列表
export function editHardwareRole(
    token,
    id,
    name,
    limits_id,
    limits_data,
    type
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    formdata.append("name", name)
    formdata.append("limits_id", limits_id)
    formdata.append("limits_data", limits_data)
    formdata.append("type", type)
    return axios.post(url + "admin/materials.Liary/updateWareRole", formdata);
}
// 五金店--删除角色管理列表
export function delHardwareRole(
    token,
    id,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    return axios.post(url + "admin/materials.Liary/delWareRole", formdata);
}
// 五金店--客服管理列表
export function getHardwareKeFe(
    token,
    seller_id,
    user_name,
    telephone,
    job_number,
    // aeccount,
    page,
    pageSize,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("user_name", user_name)
    formdata.append("telephone", telephone)
    formdata.append("job_number", job_number)
    // formdata.append("aeccount", aeccount)
    formdata.append("page", page)
    formdata.append("pageSize", pageSize)
    return axios.post(url + "admin/materials.Liary/getWareCustomerList", formdata);
}
// 五金店--更新客服状态
export function getHardwareKeFeStatus(
    token,
    id,
    status
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    formdata.append("status", status)
    return axios.post(url + "admin/materials.Liary/enableWareCustomer", formdata);
}
// 五金店--新增/编辑客服
export function editHardwareKeFe(
    token,
    cus_type,
    seller_id,
    id,
    user_name,
    telephone,
    // aeccount,
    password,
    role_id,
    avatar
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("cus_type", cus_type)
    formdata.append("seller_id", seller_id)
    formdata.append("id", id)
    formdata.append("user_name", user_name)
    formdata.append("telephone", telephone)
    // formdata.append("aeccount", aeccount)
    formdata.append("password", password)
    formdata.append("role_id", role_id)
    formdata.append("avatar", avatar)
    return axios.post(url + "admin/materials.Liary/addWareCustomer", formdata);
}
// 五金店--删除客服
export function delHardwareKeFe(
    token,
    id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    return axios.post(url + "admin/materials.Liary/delWareCustomer", formdata);
}
// 产品定制--客服管理列表
export function getProductKeFe(
    token,
    seller_id,
    user_name,
    telephone,
    job_number,
    // aeccount,
    page,
    pageSize,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("user_name", user_name)
    formdata.append("telephone", telephone)
    formdata.append("job_number", job_number)
    // formdata.append("aeccount", aeccount)
    formdata.append("page", page)
    formdata.append("pageSize", pageSize)
    return axios.post(url + "admin/materials.Liary/getZationCustomerList", formdata);
}
// 产品定制--更新客服状态
export function getProductKeFeStatus(
    token,
    id,
    status
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    formdata.append("status", status)
    return axios.post(url + "admin/materials.Liary/enableZationCustomer", formdata);
}
// 产品定制--新增/编辑客服
export function editProductKeFe(
    token,
    cus_type,
    seller_id,
    id,
    user_name,
    telephone,
    // aeccount,
    password,
    role_id,
    avatar
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("cus_type", cus_type)
    formdata.append("seller_id", seller_id)
    formdata.append("id", id)
    formdata.append("user_name", user_name)
    formdata.append("telephone", telephone)
    // formdata.append("aeccount", aeccount)
    formdata.append("password", password)
    formdata.append("role_id", role_id)
    formdata.append("avatar", avatar)
    return axios.post(url + "admin/materials.Liary/addZationCustomer", formdata);
}
// 主材商家端--客服管理列表
export function getMainKeFe(
    token,
    seller_id,
    user_name,
    telephone,
    job_number,
    // aeccount,
    page,
    pageSize,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("user_name", user_name)
    formdata.append("telephone", telephone)
    formdata.append("job_number", job_number)
    // formdata.append("aeccount", aeccount)
    formdata.append("page", page)
    formdata.append("pageSize", pageSize)
    return axios.post(url + "admin/materials.Materials/getMainsCustomerList", formdata);
}
// 主材商家端--更新客服状态
export function geMainKeFeStatus(
    token,
    id,
    status
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    formdata.append("status", status)
    return axios.post(url + "admin/materials.Materials/enableCustomer", formdata);
}
// 主材商家端--新增/编辑客服
export function editMainKeFe(
    token,
    cus_type,
    seller_id,
    id,
    // user_name,
    telephone,
    aeccount,
    password,
    role_id,
    avatar
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("cus_type", cus_type)
    formdata.append("seller_id", seller_id)
    formdata.append("id", id)
    // formdata.append("user_name", user_name)
    formdata.append("telephone", telephone)
    formdata.append("aeccount", aeccount)
    formdata.append("password", password)
    formdata.append("role_id", role_id)
    formdata.append("avatar", avatar)
    return axios.post(url + "admin/materials.Materials/addCustomer", formdata);
}
// 辅材商家端--客服管理列表
export function getFuKeFe(
    token,
    seller_id,
    user_name,
    telephone,
    job_number,
    // aeccount,
    page,
    pageSize,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("user_name", user_name)
    formdata.append("telephone", telephone)
    formdata.append("job_number", job_number)
    // formdata.append("aeccount", aeccount)
    formdata.append("page", page)
    formdata.append("pageSize", pageSize)
    return axios.post(url + "admin/materials.Liary/getMaterialsCustomerList", formdata);
}
// 辅材商家端--更新客服状态
export function geFuKeFeStatus(
    token,
    id,
    status
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    formdata.append("status", status)
    return axios.post(url + "admin/materials.Liary/enableMaterialsCustomer", formdata);
}
// 辅材商家端--新增/编辑客服
export function editFuKeFe(
    token,
    cus_type,
    seller_id,
    id,
    user_name,
    telephone,
    // aeccount,
    password,
    role_id,
    avatar
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("cus_type", cus_type)
    formdata.append("seller_id", seller_id)
    formdata.append("id", id)
    formdata.append("user_name", user_name)
    formdata.append("telephone", telephone)
    // formdata.append("aeccount", aeccount)
    formdata.append("password", password)
    formdata.append("role_id", role_id)
    formdata.append("avatar", avatar)
    return axios.post(url + "admin/materials.Liary/addMaterialsCustomer", formdata);
}
// 平台客服--角色列表下拉框
export function getKeFuRole(
    token,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    return axios.post(url + "admin/user/getSysRoleList", formdata);
}
// 平台客服--客服管理列表
export function getKeFe(
    token,
    seller_id,
    cus_type,
    user_name,
    telephone,
    job_number,
    // aeccount,
    page,
    pageSize,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("cus_type", cus_type)
    formdata.append("user_name", user_name)
    formdata.append("telephone", telephone)
    formdata.append("job_number", job_number)
    // formdata.append("aeccount", aeccount)
    formdata.append("page", page)
    formdata.append("pageSize", pageSize)
    return axios.post(url + "admin/Customer/index", formdata);
}
// 平台客服--更新客服状态
// export function getHardwareKeFeStatus(
//     token,
//     id,
//     status
// ) {
//     let formdata = new FormData();
//     formdata.append("token", token)
//     formdata.append("id", id)
//     formdata.append("status", status)
//     return axios.post(url + "admin/materials.Liary/enableWareCustomer", formdata);
// }
// 平台客服--新增/编辑客服
export function editKeFe(
    token,
    id,
    user_name,
    telephone,
    // aeccount,
    password,
    role_id,
    cus_type,
    avatar
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    formdata.append("user_name", user_name)
    formdata.append("telephone", telephone)
    // formdata.append("aeccount", aeccount)
    formdata.append("password", password)
    formdata.append("role_id", role_id)
    formdata.append("cus_type", cus_type)
    formdata.append("avatar", avatar)
    return axios.post(url + "admin/materials.Liary/addCustomer", formdata);
}
// 主材商家端--历史会话
export function getMainHistoryTalk(
    token,
    seller_id,
    cus_id,
    order_type,
    order_id,
    uname,
    phone,
    user_name,
    number,
    page,
    pageSize,
    cus_type,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("cus_id", cus_id)
    formdata.append("order_type", order_type)
    formdata.append("order_id", order_id)
    formdata.append("uname", uname)
    formdata.append("phone", phone)
    formdata.append("user_name", user_name)
    formdata.append("number", number)
    formdata.append("page", page)
    formdata.append("pageSize", pageSize)
    formdata.append("cus_type", cus_type)
    return axios.post(url + "admin/materials.Liary/getCustomerHistoryList", formdata);
}
// 房地产--获取配套设施列表
export function getsupportingFacilities(
    token,
    name,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("name", name)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/HousingMatchingSetting/MatchingSetting_list", formdata);
}
// 房地产--添加配套设施
export function addSupportingFacilities(
    token,
    name,
    sort
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("name", name)
    formdata.append("sort", sort)
    return axios.post(url + "admin/HousingMatchingSetting/MatchingSetting_add", formdata);
}
// 房地产--编辑配套设施
export function editSupportingFacilities(
    token,
    id,
    name,
    sort
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    formdata.append("name", name)
    formdata.append("sort", sort)
    return axios.post(url + "admin/HousingMatchingSetting/MatchingSetting_up", formdata);
}
// 房地产--删除配套设施
export function delSupportingFacilities(
    token,
    id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    return axios.post(url + "admin/HousingMatchingSetting/MatchingSetting_del", formdata);
}
// 主材商家端--审核售后
export function ReviewAfterSales(
    token,
    aftersales_id,
    type,
    status,
    seller_id,
    liyou,
    product_img,
    mark
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("aftersales_id", aftersales_id)
    formdata.append("type", type)
    formdata.append("status", status)
    formdata.append("seller_id", seller_id)
    formdata.append("liyou", liyou)
    formdata.append("product_img", product_img)
    formdata.append("mark", mark)
    return axios.post(url + "admin/materials.Materials/auditAftersales", formdata);
}
// 房地产--获取配套设施列表
export function getPropertyTags(
    token,
    name,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("name", name)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/HousingLabel/HousingLabel_list", formdata);
}
// 房地产--添加配套设施
export function addPropertyTags(
    token,
    name,
    sort
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("name", name)
    formdata.append("sort", sort)
    return axios.post(url + "admin/HousingLabel/HousingLabel_add", formdata);
}
// 房地产--编辑配套设施
export function editPropertyTags(
    token,
    id,
    name,
    sort
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    formdata.append("name", name)
    formdata.append("sort", sort)
    return axios.post(url + "admin/HousingLabel/HousingLabel_up", formdata);
}
// 房地产--删除配套设施
export function delPropertyTags(
    token,
    id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    return axios.post(url + "admin/HousingLabel/HousingLabel_del", formdata);
}
// 房地产--获取评价标签
export function getEvaluationTags(
    token,
    name,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("name", name)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/LabelComment/LabelComment_list", formdata);
}
// 房地产--添加评价标签
export function addEvaluationTags(
    token,
    name,
    sort
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("name", name)
    formdata.append("sort", sort)
    return axios.post(url + "admin/LabelComment/LabelComment_add", formdata);
}
// 房地产--编辑评价标签
export function editEvaluationTags(
    token,
    id,
    name,
    sort
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    formdata.append("name", name)
    formdata.append("sort", sort)
    return axios.post(url + "admin/LabelComment/LabelComment_up", formdata);
}
// 房地产--删除评价标签
export function delEvaluationTags(
    token,
    id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    return axios.post(url + "admin/LabelComment/LabelComment_del", formdata);
}
// 房地产--获取反馈问题
export function getFeedbackProblem(
    token,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/HousingFeedbackSuggestion/feedbacksuggestion_list", formdata);
}
// 房地产--房源统计
export function getHousingStatistics(
    token,
    time,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("time", time)
    return axios.post(url + "admin/HousingSource/housing_source_list_statistics", formdata);
}
// 房地产--房源统计详情
export function getHousingStatisticsDetail(
    token,
    type,
    time
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("type", type)
    formdata.append("time", time)
    return axios.post(url + "admin/HousingSource/housing_source_list_statistics_time", formdata);
}
// 房地产--获取房源列表
export function getHouseList(
    token,
    user_id,
    housing_source_title,
    name,
    phone,
    type,
    is_proprietor,
    status,
    is_up,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("user_id", user_id)
    formdata.append("housing_source_title", housing_source_title)
    formdata.append("name", name)
    formdata.append("phone", phone)
    formdata.append("type", type)
    formdata.append("is_proprietor", is_proprietor)
    formdata.append("status", status)
    formdata.append("is_up", is_up)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/HousingSource/housing_source_list", formdata);
}
// 房地产--获取房源列表详情
export function getHouseListDetail(
    token,
    housing_source_id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("housing_source_id", housing_source_id)
    return axios.post(url + "admin/HousingSource/housing_source_index", formdata);
}
// 房地产--房源列表上下架同意驳回
export function getHouseListStatus(
    token,
    id,
    status,
    is_up
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    formdata.append("status", status)
    formdata.append("is_up", is_up)
    return axios.post(url + "admin/HousingSource/Audit", formdata);
}
// 房地产=房产业态
export function getHouseBusinessFormat(
    token
) {
    let formdata = new FormData();
    formdata.append("token", token)
    return axios.post(url + "api/HousingIndustry/HousingIndustry_list", formdata);
}
// 房地产-商铺类型/写字楼类型
export function getHouseType(
    token
) {
    let formdata = new FormData();
    formdata.append("token", token)
    return axios.post(url + "api/HousingShopType/HousingShopType_list", formdata);
}
// 房地产-地铁站
export function getSubwayStation(
    token,
    name
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("name", name)
    return axios.post(url + "api/HousingMetroStation/metrostation_list", formdata);
}
// 房地产--获取个人认证列表
export function getPersonalAuthentication(
    token,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/HousingPersonalAuthentication/Authentication_list", formdata);
}
// 房地产--获取个人认证列表同意拒绝
export function getPersonalAuthenticationDetail(
    token,
    id,
    status
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    formdata.append("status", status)
    return axios.post(url + "admin/HousingPersonalAuthentication/Audit", formdata);
}
// 房地产--获取企业认证列表
export function getEnterpriseCertification(
    token,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/HousingEnterprisesAuthentication/Authentication_list", formdata);
}
// 房地产--获取个人认证列表同意拒绝
export function getEnterpriseCertificationDetail(
    token,
    id,
    status
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    formdata.append("status", status)
    return axios.post(url + "admin/HousingEnterprisesAuthentication/Audit", formdata);
}
// 主材商家端--客服（查看客服资料）
export function getMainCustomerInformation(
    token,
    user_id,
    cus_id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("user_id", user_id)
    formdata.append("cus_id", cus_id)
    return axios.post(url + "admin/materials.Liary/getUserInfo", formdata);
}
// 主材商家端--客服（客服备注）
export function getMainCustomerRemark(
    token,
    order_id,
    data
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("order_id", order_id)
    formdata.append("data", data)
    return axios.post(url + "admin/materials.Liary/customerNotes", formdata);
}
// 主材商家端--客服（查看备注）
export function getMainCustomerRemarkCheck(
    token,
    order_id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("order_id", order_id)
    return axios.post(url + "admin/materials.Liary/getOrderNotes", formdata);
}
// 水站、快修、建材、房地产--客服管理列表
export function getKeFeAll(
    token,
    cus_type,
    seller_id,
    user_name,
    telephone,
    job_number,
    // aeccount,
    page,
    pageSize,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("cus_type", cus_type)
    formdata.append("seller_id", seller_id)
    formdata.append("user_name", user_name)
    formdata.append("telephone", telephone)
    formdata.append("job_number", job_number)
    // formdata.append("aeccount", aeccount)
    formdata.append("page", page)
    formdata.append("pageSize", pageSize)
    return axios.post(url + "admin/materials.Product/getProductCusList", formdata);
}
// 水站、快修、超市、房地产--新增/编辑客服
export function editProductKeFeAll(
    token,
    cus_type,
    // seller_id,
    id,
    user_name,
    telephone,
    // aeccount,
    password,
    role_id,
    avatar
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("cus_type", cus_type)
    // formdata.append("seller_id", seller_id)
    formdata.append("id", id)
    formdata.append("user_name", user_name)
    formdata.append("telephone", telephone)
    // formdata.append("aeccount", aeccount)
    formdata.append("password", password)
    formdata.append("role_id", role_id)
    formdata.append("avatar", avatar)
    return axios.post(url + "admin/materials.Product/addZationCustomer", formdata);
}
// 商家端--修改密码
export function editBusinessPassWord(
    token,
    user_name,
    pwd,
    new_pwd,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("user_name", user_name)
    formdata.append("pwd", pwd)
    formdata.append("new_pwd", new_pwd)
    return axios.post(url + "admin/materials.Product/seller_up_pwd", formdata);
}
// 客服--订单量列表
export function getFloatBtnOrderList(
    token,
    order_id,
    user_id,
    cus_id,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("order_id", order_id)
    formdata.append("user_id", user_id)
    formdata.append("cus_id", cus_id)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/materials.Product/getProductOrderList", formdata);
}
// 房地产--获取行业业态
export function getBusinessFormat(
    token,
    page,
    limit,
    id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("page", page)
    formdata.append("limit", limit)
    formdata.append("id", id)
    return axios.post(url + "admin/HonsingIndustry/gettopcat", formdata);
}
// 房地产--添加行业业态
export function addBusinessFormat(
    token,
    pid,
    name
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("pid", pid)
    formdata.append("name", name)
    return axios.post(url + "admin/HonsingIndustry/ind_add", formdata);
}
// 房地产--编辑行业业态
export function editBusinessFormat(
    token,
    pid,
    id,
    name,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("pid", pid)
    formdata.append("id", id)
    formdata.append("name", name)
    return axios.post(url + "admin/HonsingIndustry/ind_up", formdata);
}
// 房地产--删除行业业态
export function delBusinessFormat(
    token,
    name,
    id,
    pid
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("name", name)
    formdata.append("id", id)
    formdata.append("pid", pid)
    return axios.post(url + "admin/HonsingIndustry/ind_del", formdata);
}
// 平台首页--顶部统计
export function getFirstPageTop(
    token
) {
    let formdata = new FormData();
    formdata.append("token", token)
    return axios.post(url + "admin/materials.Product/getIndexTopList", formdata);
}
// 平台首页--中部统计
export function getFirstPageMiddle(
    token,
    is_day,
    is_week,
    is_month,
    is_year,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("is_day", is_day)
    formdata.append("is_week", is_week)
    formdata.append("is_month", is_month)
    formdata.append("is_year", is_year)
    return axios.post(url + "admin/materials.Product/getIndexMainList", formdata);
}
// 平台首页--商品销量
export function getFirstPageSalesVolume(
    token,
    is_day,
    is_week,
    is_month,
    is_time,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("is_day", is_day)
    formdata.append("is_week", is_week)
    formdata.append("is_month", is_month)
    formdata.append("is_time", is_time)
    return axios.post(url + "admin/materials.Product/getIndexSellCount", formdata);
}
// 平台首页--商品销售额
export function getFirstPageSalesRevenue(
    token,
    is_day,
    is_week,
    is_month,
    is_time,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("is_day", is_day)
    formdata.append("is_week", is_week)
    formdata.append("is_month", is_month)
    formdata.append("is_time", is_time)
    return axios.post(url + "admin/materials.Product/getIndexSellAmount", formdata);
}
// 工长套餐--财务报表
export function getForemanMoney(
    token,
    seal_name,
    time,
    page,
    limit,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seal_name", seal_name)
    formdata.append("time", time)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/materials.Product/getMealList", formdata);
}
// 工长套餐--财务报表详情
export function getForemanMoneyDetail(
    token,
    id,
    page,
    limit,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/materials.Product/getMealDetail", formdata);
}
// 平台财务报表--财务汇总
export function getPlatformMoney(
    token,
    year,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("year", year)
    return axios.post(url + "admin/materials.Product/getSummaryList", formdata);
}
// 平台财务报表--财务汇总详情
export function getPlatformMoneyDetail(
    token,
    name,
    year
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("name", name)
    formdata.append("year", year)
    return axios.post(url + "admin/materials.Product/getSummaryDetail", formdata);
}
// 平台财务报表--商家抽成
export function getMerchantCommissionList(
    token,
    year,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("year", year)
    return axios.post(url + "admin/materials.Product/getSellerPercent", formdata);
}
// 平台财务报表--商家抽成详情
export function getMerchantCommissionListDetail(
    token,
    name,
    year
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("name", name)
    formdata.append("year", year)
    return axios.post(url + "admin/materials.Product/getSellerPercentDetail", formdata);
}
// 水站--空桶押金收入统计
export function getEmptyBucketDeposit(
    token
) {
    let formdata = new FormData();
    formdata.append("token", token)
    return axios.post(url + "admin/goods/getktsum", formdata);
}
// 建材财务报表--财务汇总
export function getJianCaiMoney(
    token,
    year,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("year", year)
    return axios.post(url + "admin/materials.Product/getMealSummaryList", formdata);
}
// 建材财务报表--财务汇总详情
export function getJianCaiMoneyDetail(
    token,
    name,
    year
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("name", name)
    formdata.append("year", year)
    return axios.post(url + "admin/materials.Product/getMealSummaryDetail", formdata);
}
// 水站财务报表--财务汇总
export function getWaterMoney(
    token,
    time,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("time", time)
    return axios.post(url + "admin/goods/water_price_year_nums", formdata);
}
// 水站财务报表--财务汇总详情
export function getWaterDetail(
    token,
    type,
    time
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("type", type)
    formdata.append("time", time)
    return axios.post(url + "admin/goods/water_price_year_nums_index", formdata);
}
// 水站、快修、超市--获取发票列表
export function getInvoiceList(
    token,
    page,
    limit,
    type,
    name,
    duty,
    email,
    status,
    order_type,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("page", page)
    formdata.append("limit", limit)
    formdata.append("type", type)
    formdata.append("name", name)
    formdata.append("duty", duty)
    formdata.append("email", email)
    formdata.append("status", status)
    formdata.append("order_type", order_type)
    return axios.post(url + "admin/user/invoice_list", formdata);
}
// 平台推广--获取商品推广列表
export function getPlatformPromotionList(
    token,
    goods_name,
    status,
    time,
    page,
    pageSize
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("goods_name", goods_name)
    formdata.append("status", status)
    formdata.append("time", time)
    formdata.append("page", page)
    formdata.append("pageSize", pageSize)
    return axios.post(url + "admin/materials.Product/getPromoteList", formdata);
}
// 平台推广--获取商品推广列表详情
export function getPlatformPromotionDetail(
    token,
    id,
    goods_type
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    formdata.append("goods_type", goods_type)
    return axios.post(url + "admin/materials.Product/getPromoteDetail", formdata);
}
// 平台推广--新增/编辑商品推广列表
export function addPlatformPromotionList(
    token,
    id,
    goods_id,
    module,
    type,
    sort,
    time,
    show_type
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    formdata.append("goods_id", goods_id)
    formdata.append("module", module)
    formdata.append("type", type)
    formdata.append("sort", sort)
    formdata.append("time", time)
    formdata.append("show_type", show_type)
    return axios.post(url + "admin/materials.Product/addPromote", formdata);
}
// 平台推广--删除商品推广列表
export function delPlatformPromotionList(
    token,
    id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    return axios.post(url + "admin/materials.Product/delPromote", formdata);
}
// 平台推广--结束推广
export function endPlatformPromotionList(
    token,
    id,
    status
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    formdata.append("status", status)
    return axios.post(url + "admin/materials.Product/updatePromoteStatus", formdata);
}
// 快修财务报表--财务汇总
export function getKuaiXiuMoney(
    token,
    time,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("time", time)
    return axios.post(url + "admin/goods/kx_price_year_nums", formdata);
}
// 快修财务报表--财务汇总详情
export function getKuaiXiuDetail(
    token,
    type,
    time
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("type", type)
    formdata.append("time", time)
    return axios.post(url + "admin/goods/kx_price_year_nums_index", formdata);
}
// 超市首页
export function getMarketShouYeTop(
    token
) {
    let formdata = new FormData();
    formdata.append("token", token)
    return axios.post(url + "admin/index/water_Home12", formdata);
}
// 超市首页--未处理订单
export function getMarketOrderUntreated(
    token
) {
    let formdata = new FormData();
    formdata.append("token", token)
    return axios.post(url + "admin/index/after_count_12", formdata);
}
// 超市首页--最近七天订单量统计
export function getMarketOrderSeven(
    token
) {
    let formdata = new FormData();
    formdata.append("token", token)
    return axios.post(url + "admin/order/order_statistics_12", formdata);
}
// 超市财务--交易流水
export function getMarketMoneyFlow(
    token,
    page,
    limit,
    time_status,
    time,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("page", page)
    formdata.append("limit", limit)
    formdata.append("time_status", time_status)
    formdata.append("time", time)
    return axios.post(url + "admin/goods/supermarket_list", formdata);
}
// 分享中心--获取公告列表
export function getShareAnnouncement(
    token,
    type,
    title,
    page,
    limit,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("type", type)
    formdata.append("title", title)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/user/notice_list", formdata);
}
// 分享中心--添加公告列表
export function addShareAnnouncement(
    token,
    type,
    title,
    content,
    status,
    rel_time,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("type", type)
    formdata.append("title", title)
    formdata.append("content", content)
    formdata.append("status", status)
    formdata.append("rel_time", rel_time)
    return axios.post(url + "admin/user/notice_add", formdata);
}
// 分享中心--编辑公告列表
export function editShareAnnouncement(
    token,
    type,
    id,
    title,
    content,
    status,
    rel_time,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("type", type)
    formdata.append("id", id)
    formdata.append("title", title)
    formdata.append("content", content)
    formdata.append("status", status)
    formdata.append("rel_time", rel_time)
    return axios.post(url + "admin/user/notice_up", formdata);
}
// 分享中心--删除公告列表
export function delShareAnnouncement(
    token,
    type,
    id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("type", type)
    formdata.append("id", id)
    return axios.post(url + "admin/user/notice_del", formdata);
}
// 分享中心--获取提现记录
export function getWithdrawalRecords(
    token,
    user_id,
    nickname,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("user_id", user_id)
    formdata.append("nickname", nickname)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/user/balance_user_list", formdata);
}
// 分享中心--获取提现记录详情
export function getWithdrawalRecordsDetail(
    token,
    type,
    user_id,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("type", type)
    formdata.append("user_id", user_id)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/user/balance_list", formdata);
}
// 分享中心--获取返现统计
export function getCashbackStatistics(
    token,
    nickname,
    user_id,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("nickname", nickname)
    formdata.append("user_id", user_id)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/user/fanxian_user_list", formdata);
}
// 分享中心--获取返现统计详情
export function getCashbackStatisticsDetail(
    token,
    user_id,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("user_id", user_id)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/user/fanxian_list", formdata);
}
// 分享中心--获取排名返现
export function getRankingCashback(
    token,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/Ranking/Ranking_list", formdata);
}
// 分享中心--添加排名返现
export function addRankingCashback(
    token,
    ranking,
    percentage
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("ranking", ranking)
    formdata.append("percentage", percentage)
    return axios.post(url + "admin/Ranking/Ranking_add", formdata);
}
// 分享中心--删除排名返现
export function delRankingCashback(
    token,
    id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    return axios.post(url + "admin/Ranking/Ranking_del", formdata);
}
// 分享中心--获取分享返现
export function getShareCashback(
    token,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/UserConPay/UserConPay_list", formdata);
}
// 分享中心--添加分享返现
export function addShareCashback(
    token,
    pay_small,
    pay_big,
    percentage,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("pay_small", pay_small)
    formdata.append("pay_big", pay_big)
    formdata.append("percentage", percentage)
    return axios.post(url + "admin/UserConPay/UserConPay_add", formdata);
}
// 分享中心--删除分享返现
export function delShareCashback(
    token,
    id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    return axios.post(url + "admin/UserConPay/UserConPay_del", formdata);
}
// 客服--历史会话列表
export function getHistoryTalk(
    token,
    seller_id,
    cus_id,
    cus_type,
    uname,
    id,
    user_name,
    telephone,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("cus_id", cus_id)
    formdata.append("cus_type", cus_type)
    formdata.append("uname", uname)
    formdata.append("id", id)
    formdata.append("user_name", user_name)
    formdata.append("telephone", telephone)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/materials.Liary/getCustomerHistoryList", formdata);
}
// 客服--历史会话列表详情
export function getHistoryTalkDetail(
    token,
    chat_list_id,
    word,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("chat_list_id", chat_list_id)
    formdata.append("word", word)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/materials.Liary/getCustomerHistoryDetail", formdata);
}
// 建材--获取轮播图列表
export function getCarouselChart(
    token,
    level3,
    page,
    pageSize
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("level3", level3)
    formdata.append("page", page)
    formdata.append("pageSize", pageSize)
    return axios.post(url + "admin/materials.Product/getShowPhotoList", formdata);
}
// 建材--新增轮播图
export function addCarouselChart(
    token,
    level3,
    desc
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("level3", level3)
    formdata.append("desc", desc)
    return axios.post(url + "admin/materials.Product/addShowPhoto", formdata);
}
// 建材--编辑轮播图
export function editCarouselChart(
    token,
    id,
    level3,
    desc
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    formdata.append("level3", level3)
    formdata.append("desc", desc)
    return axios.post(url + "admin/materials.Product/updateShowPhoto", formdata);
}
// 建材--上下架轮播图
export function upCarouselChart(
    token,
    id,
    status
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    formdata.append("status", status)
    return axios.post(url + "admin/materials.Product/update_photo_status", formdata);
}
// 建材--删除轮播图
export function delCarouselChart(
    token,
    id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    return axios.post(url + "admin/materials.Product/delShowPhoto", formdata);
}
// 房地产-评价列表
export function houseEvaluateList(
    token,
    uid,
    nickname,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("uid", uid)
    formdata.append("nickname", nickname)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/AnAppointment/AnAppointment_list", formdata);
}
// 房地产-评价列表详情
export function houseEvaluateListDetail(
    token,
    user_id,
    page,
    limit
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("user_id", user_id)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/AnAppointment/get_user_AnAppointment_list", formdata);
}
// 房地产-评价列表详情删除
export function houseEvaluateListDetailDel(
    token,
    id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("id", id)
    return axios.post(url + "admin/AnAppointment/get_user_AnAppointment_del", formdata);
}
export function indexee(time) {
    let formdata = new FormData()
    formdata.append("time", time)
    return axios.post(url + 'api/index/index1a', formdata)
}
// 获取商家端前缀标识
export function getPrefix(
    token,
    seller_id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    return axios.post(url + "admin/materials.Product/getSellerPrefix", formdata);
}
// 上传文件(不包含图片)
export function uploadDocument(files) {
    let formdata = new FormData();
    formdata.append("files", files);
    return axios.post(url + "lib/Upload/upload_files", formdata);
}
// 平台财务-用户消费统计
export function getUserConsumptionList(
    token,
    time,
    user_id,
    name,
    page,
    limit,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("time", time)
    formdata.append("user_id", user_id)
    formdata.append("name", name)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/user/user_ben_list ", formdata);
}
// 平台财务-用户消费统计详情
export function getUserConsumptionListDeatil(
    token,
    time,
    user_id,
    name,
    page,
    limit,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("time", time)
    formdata.append("user_id", user_id)
    formdata.append("name", name)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/user/user_ben_list_index ", formdata);
}
// 水站、快修、超市、房地产--角色管理列表
export function getAllRoleList(
    token,
    seller_id,
    name,
    type,
    page,
    limit,
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("seller_id", seller_id)
    formdata.append("name", name)
    formdata.append("type", type)
    formdata.append("page", page)
    formdata.append("limit", limit)
    return axios.post(url + "admin/materials.Materials/getWareRoleList", formdata);
}
// 水站、快修、超市、房地产--新增角色
export function addAllRoleList(
    token,
    type,
    name,
    limits_id,
    limits_data,
    seller_id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("type", type)
    formdata.append("name", name)
    formdata.append("limits_id", limits_id)
    formdata.append("limits_data", limits_data)
    formdata.append("seller_id", seller_id)
    return axios.post(url + "admin/materials.Materials/addWareRole", formdata);
}
// 水站、快修、超市、房地产--新增账号
export function addAllAccount(
    token,
    type,
    telephone,
    password,
    role_id
) {
    let formdata = new FormData();
    formdata.append("token", token)
    formdata.append("type", type)
    formdata.append("telephone", telephone)
    formdata.append("password", password)
    formdata.append("role_id", role_id)
    return axios.post(url + "admin/materials.Materials/createAccount", formdata);
}